<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: skipList&lt; T &gt; 模板类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="../../d5/d1f/classskip_list-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">skipList&lt; T &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>跳表的实现  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a>&gt;</code></p>
<div class="dynheader">
skipList&lt; T &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d80/classskip_list__coll__graph.png" border="0" usemap="#askip_list_3_01_t_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="askip_list_3_01_t_01_4_coll__map" id="askip_list_3_01_t_01_4_coll__map">
<area shape="rect" title="跳表的实现" alt="" coords="5,311,193,700"/>
<area shape="rect" href="../../d6/dfb/classskip_list_1_1st_iterator.html" title=" " alt="" coords="25,140,174,247"/>
<area shape="poly" title=" " alt="" coords="102,246,102,293,97,293,97,246"/>
<area shape="rect" title=" " alt="" coords="19,5,179,91"/>
<area shape="poly" title=" " alt="" coords="102,106,102,140,97,140,97,106"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7b/structskip_list_1_1st_head.html">stHead</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dfb/classskip_list_1_1st_iterator.html">stIterator</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d1d/structskip_list_1_1st_node.html">stNode</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:ab04a8617aa95c59b6823c4a7f90c4d60" id="r_ab04a8617aa95c59b6823c4a7f90c4d60"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab04a8617aa95c59b6823c4a7f90c4d60">value_type</a> = typename std::remove_pointer&lt; typename std::decay&lt; T &gt; ::type &gt;::type</td></tr>
<tr class="separator:ab04a8617aa95c59b6823c4a7f90c4d60"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a41ad3b730190195d6740ccf07d8df7d0" id="r_a41ad3b730190195d6740ccf07d8df7d0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a41ad3b730190195d6740ccf07d8df7d0">skipList</a> ()</td></tr>
<tr class="separator:a41ad3b730190195d6740ccf07d8df7d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c8592ea4d95ec292395c132e8ff7192" id="r_a6c8592ea4d95ec292395c132e8ff7192"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6c8592ea4d95ec292395c132e8ff7192">skipList</a> (size_t s)</td></tr>
<tr class="separator:a6c8592ea4d95ec292395c132e8ff7192"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49ea58b52162713cd0ba30f3e2f40717" id="r_a49ea58b52162713cd0ba30f3e2f40717"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a49ea58b52162713cd0ba30f3e2f40717">~skipList</a> ()</td></tr>
<tr class="separator:a49ea58b52162713cd0ba30f3e2f40717"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fc93f8da0649624d63dc0e8d93838d2" id="r_a3fc93f8da0649624d63dc0e8d93838d2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3fc93f8da0649624d63dc0e8d93838d2">insert</a> (const <a class="el" href="#ab04a8617aa95c59b6823c4a7f90c4d60">value_type</a> &amp;data)</td></tr>
<tr class="memdesc:a3fc93f8da0649624d63dc0e8d93838d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">插入节点  <br /></td></tr>
<tr class="separator:a3fc93f8da0649624d63dc0e8d93838d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac737de735ae47caa72967a8d6cd04d23" id="r_ac737de735ae47caa72967a8d6cd04d23"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac737de735ae47caa72967a8d6cd04d23">erase</a> (<a class="el" href="#a0ff611f763f2a2676849d226a8fc4f09">iterator</a> it)</td></tr>
<tr class="separator:ac737de735ae47caa72967a8d6cd04d23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a669a513bb1b18c122bb4232cd739299b" id="r_a669a513bb1b18c122bb4232cd739299b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a669a513bb1b18c122bb4232cd739299b">erase</a> (<a class="el" href="#a0ff611f763f2a2676849d226a8fc4f09">iterator</a> start, <a class="el" href="#a0ff611f763f2a2676849d226a8fc4f09">iterator</a> end)</td></tr>
<tr class="separator:a669a513bb1b18c122bb4232cd739299b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeb93ff971830b6f00276c0757da13ed" id="r_aaeb93ff971830b6f00276c0757da13ed"><td class="memTemplParams" colspan="2">template&lt;typename KEY_TYPE &gt; </td></tr>
<tr class="memitem:aaeb93ff971830b6f00276c0757da13ed"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="#a0ff611f763f2a2676849d226a8fc4f09">iterator</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#aaeb93ff971830b6f00276c0757da13ed">find_if</a> (KEY_TYPE &amp;&amp;key, std::function&lt; int(KEY_TYPE &amp;&amp;, const <a class="el" href="#ab04a8617aa95c59b6823c4a7f90c4d60">value_type</a> &amp;) &gt; compare)</td></tr>
<tr class="separator:aaeb93ff971830b6f00276c0757da13ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49005577a3c9f48462bc6d03d8646d92" id="r_a49005577a3c9f48462bc6d03d8646d92"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#a0ff611f763f2a2676849d226a8fc4f09">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a49005577a3c9f48462bc6d03d8646d92">find</a> (const <a class="el" href="#ab04a8617aa95c59b6823c4a7f90c4d60">value_type</a> &amp;data)</td></tr>
<tr class="separator:a49005577a3c9f48462bc6d03d8646d92"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a0ff611f763f2a2676849d226a8fc4f09" id="r_a0ff611f763f2a2676849d226a8fc4f09"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d6/dfb/classskip_list_1_1st_iterator.html">skipList::stIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0ff611f763f2a2676849d226a8fc4f09">iterator</a> = <a class="el" href="../../d6/dfb/classskip_list_1_1st_iterator.html">stIterator</a></td></tr>
<tr class="separator:a0ff611f763f2a2676849d226a8fc4f09"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a3e7bd12244eedd27ff7309bc4d38f021" id="r_a3e7bd12244eedd27ff7309bc4d38f021"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3e7bd12244eedd27ff7309bc4d38f021">level_count__</a> (size_t nodeCount)</td></tr>
<tr class="memdesc:a3e7bd12244eedd27ff7309bc4d38f021"><td class="mdescLeft">&#160;</td><td class="mdescRight">计算层数  <br /></td></tr>
<tr class="separator:a3e7bd12244eedd27ff7309bc4d38f021"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a37b362a7ba62c11779885c0ecfd85c88" id="r_a37b362a7ba62c11779885c0ecfd85c88"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="../../de/d7b/structskip_list_1_1st_head.html">stHead</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a37b362a7ba62c11779885c0ecfd85c88">m_head__</a></td></tr>
<tr class="separator:a37b362a7ba62c11779885c0ecfd85c88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a193a38d21fb42c2ba27975940d7e121e" id="r_a193a38d21fb42c2ba27975940d7e121e"><td class="memItemLeft" align="right" valign="top">std::mutex&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a193a38d21fb42c2ba27975940d7e121e">m_mutex__</a></td></tr>
<tr class="separator:a193a38d21fb42c2ba27975940d7e121e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename T&gt;<br />
class skipList&lt; T &gt;</div><p>跳表的实现 </p>
<dl class="section version"><dt>版本</dt><dd>1.0 </dd></dl>
<dl class="section author"><dt>作者</dt><dd>宋炜 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2024-01-24 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00017">17</a> 行定义.</p>
</div><h2 class="groupheader">成员类型定义说明</h2>
<a id="ab04a8617aa95c59b6823c4a7f90c4d60" name="ab04a8617aa95c59b6823c4a7f90c4d60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab04a8617aa95c59b6823c4a7f90c4d60">&#9670;&#160;</a></span>value_type</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;::value_type = typename std::remove_pointer&lt; typename std::decay&lt; T &gt; ::type &gt;::type</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00020">20</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="a41ad3b730190195d6740ccf07d8df7d0" name="a41ad3b730190195d6740ccf07d8df7d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41ad3b730190195d6740ccf07d8df7d0">&#9670;&#160;</a></span>skipList() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;<a class="el" href="../../d7/d37/classskip_list.html">::skipList</a> </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00065">65</a> 行定义.</p>

</div>
</div>
<a id="a6c8592ea4d95ec292395c132e8ff7192" name="a6c8592ea4d95ec292395c132e8ff7192"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c8592ea4d95ec292395c132e8ff7192">&#9670;&#160;</a></span>skipList() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;<a class="el" href="../../d7/d37/classskip_list.html">::skipList</a> </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00066">66</a> 行定义.</p>

</div>
</div>
<a id="a49ea58b52162713cd0ba30f3e2f40717" name="a49ea58b52162713cd0ba30f3e2f40717"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49ea58b52162713cd0ba30f3e2f40717">&#9670;&#160;</a></span>~skipList()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;::~<a class="el" href="../../d7/d37/classskip_list.html">skipList</a> </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00069">69</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ac737de735ae47caa72967a8d6cd04d23" name="ac737de735ae47caa72967a8d6cd04d23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac737de735ae47caa72967a8d6cd04d23">&#9670;&#160;</a></span>erase() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;::erase </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="#a0ff611f763f2a2676849d226a8fc4f09">iterator</a></td>          <td class="paramname"><span class="paramname"><em>it</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00086">86</a> 行定义.</p>

</div>
</div>
<a id="a669a513bb1b18c122bb4232cd739299b" name="a669a513bb1b18c122bb4232cd739299b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a669a513bb1b18c122bb4232cd739299b">&#9670;&#160;</a></span>erase() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;::erase </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="#a0ff611f763f2a2676849d226a8fc4f09">iterator</a></td>          <td class="paramname"><span class="paramname"><em>start</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="#a0ff611f763f2a2676849d226a8fc4f09">iterator</a></td>          <td class="paramname"><span class="paramname"><em>end</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00090">90</a> 行定义.</p>

</div>
</div>
<a id="a49005577a3c9f48462bc6d03d8646d92" name="a49005577a3c9f48462bc6d03d8646d92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49005577a3c9f48462bc6d03d8646d92">&#9670;&#160;</a></span>find()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="#a0ff611f763f2a2676849d226a8fc4f09">iterator</a> <a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;::find </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="#ab04a8617aa95c59b6823c4a7f90c4d60">value_type</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>data</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>查找数据 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>要查找的数据。数据类型如果比较复杂，应该重载 = 和 &lt; </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00129">129</a> 行定义.</p>

</div>
</div>
<a id="aaeb93ff971830b6f00276c0757da13ed" name="aaeb93ff971830b6f00276c0757da13ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaeb93ff971830b6f00276c0757da13ed">&#9670;&#160;</a></span>find_if()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<div class="memtemplate">
template&lt;typename KEY_TYPE &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="#a0ff611f763f2a2676849d226a8fc4f09">iterator</a> <a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;::find_if </td>
          <td>(</td>
          <td class="paramtype">KEY_TYPE &amp;&amp;</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::function&lt; int(KEY_TYPE &amp;&amp;, const <a class="el" href="#ab04a8617aa95c59b6823c4a7f90c4d60">value_type</a> &amp;) &gt;</td>          <td class="paramname"><span class="paramname"><em>compare</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00097">97</a> 行定义.</p>

</div>
</div>
<a id="a3fc93f8da0649624d63dc0e8d93838d2" name="a3fc93f8da0649624d63dc0e8d93838d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fc93f8da0649624d63dc0e8d93838d2">&#9670;&#160;</a></span>insert()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;::insert </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="#ab04a8617aa95c59b6823c4a7f90c4d60">value_type</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>data</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>插入节点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">要插入的数据</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00074">74</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/d37/classskip_list_a3fc93f8da0649624d63dc0e8d93838d2_cgraph.png" border="0" usemap="#ad7/d37/classskip_list_a3fc93f8da0649624d63dc0e8d93838d2_cgraph" alt=""/></div>
<map name="ad7/d37/classskip_list_a3fc93f8da0649624d63dc0e8d93838d2_cgraph" id="ad7/d37/classskip_list_a3fc93f8da0649624d63dc0e8d93838d2_cgraph">
<area shape="rect" title="插入节点" alt="" coords="5,5,112,32"/>
<area shape="rect" href="../../d7/d37/classskip_list.html#a3e7bd12244eedd27ff7309bc4d38f021" title="计算层数" alt="" coords="160,5,314,32"/>
<area shape="poly" title=" " alt="" coords="112,16,144,16,144,21,112,21"/>
</map>
</div>

</div>
</div>
<a id="a3e7bd12244eedd27ff7309bc4d38f021" name="a3e7bd12244eedd27ff7309bc4d38f021"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e7bd12244eedd27ff7309bc4d38f021">&#9670;&#160;</a></span>level_count__()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;::level_count__ </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nodeCount</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>计算层数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nodeCount[</td><td>I ], 数据点数量 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00053">53</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/d37/classskip_list_a3e7bd12244eedd27ff7309bc4d38f021_icgraph.png" border="0" usemap="#ad7/d37/classskip_list_a3e7bd12244eedd27ff7309bc4d38f021_icgraph" alt=""/></div>
<map name="ad7/d37/classskip_list_a3e7bd12244eedd27ff7309bc4d38f021_icgraph" id="ad7/d37/classskip_list_a3e7bd12244eedd27ff7309bc4d38f021_icgraph">
<area shape="rect" title="计算层数" alt="" coords="160,5,314,32"/>
<area shape="rect" href="../../d7/d37/classskip_list.html#a3fc93f8da0649624d63dc0e8d93838d2" title="插入节点" alt="" coords="5,5,112,32"/>
<area shape="poly" title=" " alt="" coords="144,21,112,21,112,16,144,16"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a0ff611f763f2a2676849d226a8fc4f09" name="a0ff611f763f2a2676849d226a8fc4f09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ff611f763f2a2676849d226a8fc4f09">&#9670;&#160;</a></span>iterator</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d6/dfb/classskip_list_1_1st_iterator.html">skipList::stIterator</a> <a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;::iterator = <a class="el" href="../../d6/dfb/classskip_list_1_1st_iterator.html">stIterator</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a37b362a7ba62c11779885c0ecfd85c88" name="a37b362a7ba62c11779885c0ecfd85c88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37b362a7ba62c11779885c0ecfd85c88">&#9670;&#160;</a></span>m_head__</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; <a class="el" href="../../de/d7b/structskip_list_1_1st_head.html">stHead</a> &gt; <a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;::m_head__</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00046">46</a> 行定义.</p>

</div>
</div>
<a id="a193a38d21fb42c2ba27975940d7e121e" name="a193a38d21fb42c2ba27975940d7e121e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a193a38d21fb42c2ba27975940d7e121e">&#9670;&#160;</a></span>m_mutex__</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::mutex <a class="el" href="../../d7/d37/classskip_list.html">skipList</a>&lt; T &gt;::m_mutex__</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a> 第 <a class="el" href="../../d7/de1/skip_list_8hpp_source.html#l00047">47</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/container/<a class="el" href="../../d7/de1/skip_list_8hpp_source.html">skipList.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
